﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第七十一题
//BC73 挂科危险
//https://www.nowcoder.com/practice/0b62b8dca766459ca3935a499a737d9f?tpId=107&tqId=33354&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    while (scanf("%d", &n) != EOF) {
        if (n >= 0 && n <= 3) {
            printf("Good\n");
        }
        else if (n >= 4 && n <= 9) {
            printf("Danger\n");
        }
        else {
            printf("Danger++\n");
        }
    }
    return 0;
}